CREATE TABLE [dbo].[Region]
(
[Id] [int] NOT NULL,
[CountryId] [int] NOT NULL CONSTRAINT [DF__tbl_regio__count__50C5FA01] DEFAULT ('0'),
[Name] [nvarchar] (128) COLLATE Cyrillic_General_CI_AS NOT NULL CONSTRAINT [DF__tbl_regio__regio__51BA1E3A] DEFAULT (''),
[IsVisible] [bit] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Region] ADD CONSTRAINT [PK_Region] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Region] ADD CONSTRAINT [FK_Region_Country] FOREIGN KEY ([CountryId]) REFERENCES [dbo].[Country] ([Id])
GO
